home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / dev / misc / gadoc.lha / GAdoc.c / 2PagesTexi.scr next >
Encoding:
Text File  |  1995-03-28  |  3.3 KB  |  86 lines

  1.  
  2. .key source_dvi/A,dest_dvi/A
  3. .bra {
  4. .ket }
  5.  
  6. ; $VER: 2PagesTexi 1.0 (c) Gerhard Leibrock 1993/94
  7.  
  8. ; TO USE THIS SCRIPT, YOU NEED AN AMIGA, GADOC, PASTEX AND DVIDVI.
  9. ;                  +++++  ++++++ ++++++     ++++++
  10.  
  11. ; Script for amiga computer family
  12. ; This script takes two parameters: a source file and the name of a file,
  13. ; that it will generate for you.
  14. ; It takes a given .dvi file (the output using virtex with the texinfo
  15. ; file generated by gadoc) and generates two new .dvi files, which were
  16. ; reduced 50% in size! Meaning, you only need 50% of the paper.
  17. ; !Print out the two files and you will have a nice booklet!
  18.  
  19. IF EXISTS ENV:SYS/lOCALE.PREFS
  20.   SEARCH >nil: ENV:SYS/LOCALE.PREFS deutsch
  21.   IF WARN
  22.     SKIP default1
  23.   else
  24.     echo "ACHTUNG: Entworfen für PasTeX AMIGA !!"
  25.     echo "Mit diesem Skript können Sie mittels dvidvi ein Buch drucken,"
  26.     echo "daß zwei verkleinerte Seiten auf einer einzigen Seite hat, die"
  27.     echo "doppelseitig bedruckt werden."
  28.     echo "Man braucht die Blätter nur in der Mitte zu falten und richtig"
  29.     echo "zusammenzustecken (Wandelt dina4 in dina5 um)."
  30.     echo "dvidvi (c) bei Thomas Rockicki"
  31.     echo "Damit dieses Skript korrekt arbeiten kann, müssen Sie eine .dvi"
  32.     echo "Datei aus einem GAdoc-TeXinfo Dokument erstellt haben."
  33.   ENDIF
  34. ELSE
  35.   SKIP default1
  36. endif
  37. LAB OK
  38.  
  39. dvidvi -m 4:-1(-1.0,-0.75),2(8.0,-0.75) -sm -2 -sw 4 {source_dvi} T1-{dest_dvi}
  40. dvidvi -m 4:-3(-1.0,-0.75),0(8.0,-0.75) -sm -2 -sw 4 {source_dvi} T2-{dest_dvi}
  41. echo "*N(AMIGA -> printer)"
  42. echo "dviprint printer DeskJet landscape on -o OUTto FASTPAR: T1-out.dvi"
  43. IF EXISTS ENV:SYS/lOCALE.PREFS
  44.   SEARCH >nil: ENV:SYS/LOCALE.PREFS deutsch
  45.   IF WARN
  46.     SKIP default2
  47.   ELSE
  48.     echo "Papier dem Drucker entnehmen und einfach den Stapel, so wie er aus dem"
  49.     echo "Drucker kam in Papiereinzug legen."
  50.     echo "*NRichtiges Falten:"
  51.     echo " Stapel aus Drucker entnehmen und wie folgt falten:"
  52.     echo "     1. Unterstes Blatt nach außen falten"
  53.     echo "     2. Oberstes Blatt nach innen falten"
  54.     echo "     3. Das Blatt aus Schritt 2 auf das Blatt aus Schritt 1 legen."
  55.     echo "     4. Schritte 1,2,3 solange wiederholen, bis der Stapel leer ist."
  56.     echo "     5. Sie halten das Büchlein in der Hand."
  57.   ENDIF
  58. ELSE
  59.   SKIP default2
  60. ENDIF
  61. LAB OK2
  62.  
  63. echo "*Ndviprint printer DeskJet landscape on -o OUTto FASTPAR: T2-out.dvi"
  64. skip ende
  65.  
  66. LAB default1
  67.     echo "WARNING: Designed for usage with PasTeX Amiga!!!"
  68.     echo "This script allows via dvidvi the creation of a book"
  69.     echo "with two smaller sides on one page and double sided."
  70.     echo "dvidvi is (c) by Thomas Rockicki"
  71.     echo "This script is designed to work with GADOC (c) Gerhard Leibrock"
  72. SKIP BACK OK
  73. LAB default2
  74.     echo "Take the bunch of paper out of the printer and re-insert it."
  75.     echo "(The last page which came out will be the first to be printed.)"
  76.     echo "*N How to fold the booklet:"
  77.     echo " Get the paper out of the printer and follow the steps below:"
  78.     echo "  1. Fold the lowest sheet of paper to the outside."
  79.     echo "  2. Fold the toggling sheet of paper to the inside."
  80.     echo "  3. Put the sheet of paper from step 2 above the sheet of paper from step 1."
  81.     echo "  4. Repeat 1,2,3 until you have no more sheets of paper."
  82.     echo "  5. You are holding your new book in your hands."
  83. SKIP BACK OK2
  84.  
  85. LAB ende
  86.